rnorm
{base}
Generate random numbers from a normal distribution
range
{base}
Return range of values
names
{base}
Retrieve names of a list/vector
as.character
{base}
Coerce a vector to character
var
{stats}
Calculate variance
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
max
{base}
Get maximum of a vector
mutate
{dplyr}
Modify/create a column in a data frame
length
{base}
Returns number of elements in an object
setwd
{base}
Set Working Directory
which
{base}
return indexes of TRUE entries of a logical vector
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
lm
{base}
Fit a linear model
log
{base}
log (default base = e)
summary
{base}
Obtain summary statistics or detailed regression output
seq
{base}
Create a sequence
median
{stats}
Get median of a vector
sd
{stats}
Get standard deviation of a vector
cut
{base}
Convert Numeric to Factor
read_excel
{readxl}
Read an Excel file
modelsummary
{modelsummary}
Creates regression and data tables
head
{utils}
Show first 5 rows of a data frame
sample
{base}
Takes a sample of the specified size
ordered
{dplyr}
Create an ordered factor
library
{base}
Load an R package
binomial
{base}
Family argument in glm()
group_tt
{tinytable}
Grouping in tinytable
as.data.frame
{base}
Functions to check if an object is a data frame, or coerce it if possible.
list
{base}
Create a list object
filter
{dplyr}
Filter out rows of a data frame according to logical vector
str
{utils}
Get the structure of an R object
dnorm
{stats}
Density distribution for the normal distribution
glm
{base}
Fits generalized linear models
bar
{base}
Used for annotations, such as “expression(paste(”-“,bar(y)))”
ifelse
{base}
Return a or b depending on the value of test
predict
{stats}
Predict Probability
data.frame
{base}
Create a data.frame from vectors
mean
{base}
Get mean of a vector
par
{graphics}
Set parameters of the plotting device
pnorm
{base}
Returns the cumulative distribution function (CDF) of the normal distribution
min
{base}
Get minimum of a vector
nobs
{gdata}
Compute the number of non-missing observations
plot
{graphics}
Generic function from base R to produce a plot
expression
{base}
Used in plots to add symbols to axes
c
{base}
Combine values/vectors into a vector
The end!